package cn.edu.scau.cmi.linjinyong.consistentComposite;
import java.util.HashSet;
import java.util.Set;

public class Team extends Organization {
    Set<Organization> teammates = new HashSet<>();

    public Team(){}
    public Team(String name){
        this.name = name;
    }

    @Override
    public void addTeammate(Organization teammate) {
        teammates.add(teammate);
    }

    @Override
    public void removeTeammate(Organization teammate) {
        teammates.remove(teammate);
    }
}
